package com.fuqiang.nightshopumsmodel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:会员登录记录
 * @author fuqiang
 * @since 2020-04-14
 */
@ApiModel(value ="会员登录记录")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ums_member_login_log")
public class UmsMemberLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("member_id")
    private Long memberId;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("ip")
    private String ip;
    @TableField("city")
    private String city;
    @ApiModelProperty(value = "登录类型：0->PC；1->android;2->ios;3->小程序")
    @TableField("login_type")
    private Integer loginType;
    @TableField("province")
    private String province;


    public static final String ID = "id";

    public static final String MEMBER_ID = "member_id";

    public static final String CREATE_TIME = "create_time";

    public static final String IP = "ip";

    public static final String CITY = "city";

    public static final String LOGIN_TYPE = "login_type";

    public static final String PROVINCE = "province";

}
